package com.mlnx.work.entity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.TableName;

import com.mlnx.work.enums.ProjectStatusEnum;
import com.mlnx.work.enums.ProjectTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * table name:  t_project_dir
 * author name: amanda.shan
 * create time: 2020-12-28 16:58:01
 */
@Data
@ApiModel
@TableName("t_project_dir")
public class ProjectDir extends WorkBaseEntity {

    @ApiModelProperty(value = "项目层级名称")
    private String dirName;

    @ApiModelProperty(value = "根目录ID，0表示本条为根目录，即项目")
    private Integer rootId;

    @ApiModelProperty(value = "父层级ID，0表示无")
    private Integer parentId;

    @ApiModelProperty(value = "项目创建人ID")
    private Integer creatorId;

    @ApiModelProperty(value = "项目负责人ID")
    private Integer managerId;

    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    @ApiModelProperty(value = "项目最初计划开始时间")
    private Long originStartTime;

    @ApiModelProperty(value = "项目实际开始时间")
    private Long startTime;

    @ApiModelProperty(value = "项目最初计划结束时间")
    private Long originEndTime;

    @ApiModelProperty(value = "项目实际完成时间")
    private Long completedTime;

    @ApiModelProperty(value = "成果交付")
    private String achievement;

    @ApiModelProperty(value = "风险项")
    private String risk;

    @ApiModelProperty(value = "里程碑")
    private Boolean milepost;

    @ApiModelProperty(value = "类别")
    private ProjectTypeEnum type;

    @ApiModelProperty(value = "标签")
    private String tags;

    @EnumValue
    @ApiModelProperty(value = "项目状态，ProjectStatusEnum枚举")
    private ProjectStatusEnum status;
}

